<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <title>优秀作家</title>
    <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4803307_bk19qw3y1fh.css">
    <link rel="stylesheet" href="./css/public.css">
    <link rel="stylesheet" href="./css/author.css">
</head>
<body>
    <header>
        <p class="search w100p rel ml-20 mt-10">
            <i class="iconfont icon-sousuo abs f14"></i>
            <input type="text" class="search-box" placeholder="了不起的面包怪">
        </p>
        <nav class="navigation mt-10 mb-20 flex jc-sa">
            <a class="f18 f666 fw-b" href="./index.html">推荐</a>
            <a class="act f18 f666 fw-b" href="./subject.html">书单</a>
            <a class="f18 f666 fw-b" href="./all.html">全部</a>
        </nav>
    </header>
    <div style="height: 130px;"></div>

    <main>
        <div class="head bg-fff">
            <nav class="mt-10 mb-10 flex jc-sa">
                <a onclick="changeNav(1);" class="link f16 f666 fw-b" href="#">系列</a>
                <a onclick="changeNav(2);" class="link f16 f666 fw-b" href="#">奖项</a>
                <a onclick="changeNav(3);" class="link active f16 f666 fw-b" href="#">作家</a>
            </nav>
        </div>

        <ul class="author">
            <li class="flex mt-10 bg-fff">
                <img src="./img/author1.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">赖马</span>
                        <i class="iconfont icon-icon1 f666">292</i>
                    </p>
                    <p class="f14 f666 mt-10">几乎囊括了台湾所有重要绘本奖项</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>

            <li class="flex mt-10 bg-fff">
                <img src="./img/author2.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">埃尔维·杜莱</span>
                        <i class="iconfont icon-icon1 f666">114</i>
                    </p>
                    <p class="f14 f666 mt-10">全球最具创新性的童话书大师之一</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>

            <li class="flex mt-10 bg-fff">
                <img src="./img/author3.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">铃木典丈</span>
                        <i class="iconfont icon-icon1 f666">158</i>
                    </p>
                    <p class="f14 f666 mt-10">充满幻想和游戏性的创作者</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>

            <li class="flex mt-10 bg-fff">
                <img src="./img/author4.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">埃米莉·格雷维特</span>
                        <i class="iconfont icon-icon1 f666">132</i>
                    </p>
                    <p class="f14 f666 mt-10">凯特·格林纳威金奖作家</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>

            <li class="flex mt-10 bg-fff">
                <img src="./img/author5.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">理查德·斯凯瑞</span>
                        <i class="iconfont icon-icon1 f666">98</i>
                    </p>
                    <p class="f14 f666 mt-10">世界童话书无冕之王</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>

            <li class="flex mt-10 bg-fff">
                <img src="./img/author6.png" alt="" class="imge">
                <div class="right ml-10 w100p">
                    <p class="flex jc-sb">
                        <span class="f22 fw-b">李欧·李奥尼</span>
                        <i class="iconfont icon-icon1 f666">106</i>
                    </p>
                    <p class="f14 f666 mt-10">被誉为“二十世纪的伊索”</p>
                    <div class="book mt-10 flex jc-sa">
                        <img src="./img/book1.png" alt="">
                        <img src="./img/book2.png" alt="">
                        <img src="./img/book3.png" alt="">
                        <span class="f12 f666">...14本</span>
                    </div>
                </div>
            </li>
        </ul>
    </main>

    <div class="blank"></div>
    <footer>
        <div class="bg-fff flex jc-sa fixed w100p">
            <a class="link active flex fdc aic jc-c f888" href="./index.html">
                <i class="iconfont icon-huibenyuedu f22"></i>
                <span class="pt-5 f12">绘本</span>
            </a>
            <a class="link flex fdc aic jc-c f888" href="./bookshelf.html">
                <i class="iconfont icon-wodeshujia f22"></i>
                <span class="pt-5 f12">书架</span>
            </a>
            <a class="link flex fdc aic jc-c f888" href="./discover.html">
                <i class="iconfont icon-faxian f22"></i>
                <span class="pt-5 f12">发现</span>
            </a>
            <a class="link flex fdc aic jc-c f888" href="./my.html">
                <i class="iconfont icon-gerenzhongxin f22"></i>
                <span class="pt-5 f12">我的</span>
            </a>
        </div>
    </footer>

    <script>
        //切换导航栏
        function changeNav(index) {
        document.querySelector('nav .active').classList.remove('active');
        document.querySelector(`nav .link:nth-child(${index})`).classList.add('active');

        setTimeout(function () {
            //根据index的值去跳转
            if (index === 1) {
                location.href = 'subject.html';
            } else if (index === 2) {
                location.href = 'award.html';
            } else if (index === 3) {
                location.href = 'nice-author.html';
            }
          }, 200)
        }
    </script>
</body>
</html>